﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

public partial class Admin_Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        SqlConnection con = new SqlConnection("server=KienVang-KV;database=ShopHoa;uid=sa;pwd=tung");

        con.Open();

        SqlCommand com = new SqlCommand("spInsertTable1", con);

        com.CommandType = CommandType.StoredProcedure;

        com.Parameters.Add("@Name", SqlDbType.VarChar).Value = "aa";

        com.Parameters.Add("@Phone", SqlDbType.VarChar).Value = DBNull.Value;


        com.ExecuteNonQuery();
    }
}
